package com.feibi.firstplugin.Utils;

import com.feibi.firstplugin.Action.WaitDialog;
import com.feibi.firstplugin.Global;
import com.feibi.firstplugin.NotifyDialog;
import com.intellij.notification.*;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.MessageType;

public class NotifyUtil {
    public static void notify(String msg) {
        NotifyDialog dialog = new NotifyDialog(Global.project, msg);
        dialog.show();

//        NotificationGroup notificationGroup = new NotificationGroup("My Notification Group", NotificationDisplayType.STICKY_BALLOON, true);
//        Notification notification = notificationGroup.createNotification(msg, MessageType.WARNING);
//        Notifications.Bus.notify(notification);

//        NotificationGroupManager.getInstance()
//                // plugin.xml里配置的id
//                .getNotificationGroup("My Notification Group")
//                .createNotification(msg, NotificationType.INFORMATION)
//                .notify();

    }
}
